<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.org/rich">
      
<h:head>
	<h:outputStylesheet name="layout.css" library="css"></h:outputStylesheet>
	<h:outputStylesheet name="core.css" library="css"></h:outputStylesheet>
	<h:outputStylesheet name="demo.css" library="css"></h:outputStylesheet>	
	<h:outputStylesheet name="slicebox.css" library="css"></h:outputStylesheet>
	<h:outputScript target="head">
		var load = "effects,builder";
	</h:outputScript>	
	<h:outputScript name="modernizr.custom.13303.js" library="js"/>
	<h:outputScript name="jquery-1.6.js" library="js"/>
	<h:outputScript name="jquery.slicebox.min.js" library="js"/>	
			
	<title><ui:insert name="pageTitle">Page Title</ui:insert></title>
</h:head>

<h:body>
	
	<f:loadBundle basename="resources" var="msg" />	
	<table style="border:1px solid #CAD6E0"  align="center" cellpadding="0" cellspacing="0" border="0" width="992px">
	<tbody>
	
		<tr>
			<td align="center" valign="middle" width="100%">
				<ui:insert name="pageHeader"><ui:include src="/templates/header.xhtml" /></ui:insert>			
			</td>
		</tr>
		
		<tr>
			<td width="100%"  colspan="2">
				<table width="100%" style="height: 150px;" align="left" cellpadding="0" cellspacing="2" border="0">
				<tbody>
					<tr>
						<td align="left" width="100%">
							<rich:panel styleClass="messagesBox">
								<ui:insert name="messagesBox"> Messages Box </ui:insert>
							</rich:panel>
						</td>					
					</tr>
					
					<tr>
						<td align="center" width="100%" valign="middle">
							<rich:panel styleClass="mainBodyBox">					
								<ui:insert name="pageBody">Page Body</ui:insert>
							</rich:panel>					
						</td>					
					</tr>
				</tbody>
				</table>
			</td>
		</tr>	
		
		<tr>
			<td align="center" valign="middle" width="100%">
				<rich:panel styleClass="footerBox">
					<ui:insert name="pageFooter">Page Footer</ui:insert>
				</rich:panel>
			</td>
		</tr>
	</tbody>
	</table>	
</h:body>
</html>